package com.example.springaop.aop.dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDao {
    public void add(){System.out.println("add方法被执行了");}
    public void test(){System.out.println("能够获取到dao层对象");}
    public void delete(){System.out.println("删除方法被执行了");}
    public void update(){System.out.println("更新方法被执行了");}
    public String query(int id){
        System.out.println("查询方法被执行了:id="+id);
        return "你好世界！";
    }
}
